package org.yihang.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FindByVo {
	
	public static final String DEFAULT = "~!@#$%^&*()_";

	public VoType voType() default VoType.eq;

	/**
	 * 为true 时，会在按条件组合sql查询中添加比较的默认值
	 * <pre>
	 * &lt;if test="属性 = 默认值"&gt;
	 *   ...
	 * &lt;/if&gt;
	 * </pre>
	 * @return
	 */
	public String nullValue() default DEFAULT;

}
